<?php
    $item_menu[0] = 3;
    $item_menu[1] = 1;
    $title = 'Slide | Banners';

	include('header.php');

	if (!isset($_SESSION["admin"])) {redirect("login.php");	exit(); }

	if(!empty($_SESSION['Msg'])) {
	   echo mensaje_ok($_SESSION['Msg']);
		$_SESSION['Msg']='';
	}

	$data=$_POST;
	unset($data['submit']);
	$ok = $db->Replace('slides',$data,'id', $autoquote = true); 
	
	redirect(ADMIN.'/banner.php');
	die();
	
?>